package com.zcxk.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Getter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author wangping
 * @date 2023-07-28 00:20
 */
@Getter
public class ValueData  implements Serializable {

  @Serial
  private static final long serialVersionUID = 6323065420789134372L;

  private Integer serialNo;

  /**
   * 心率
   */
  private Integer hr;

  /**
   * 呼吸
   */
  private Integer resp;

  /**
   * 血氧
   */
  private Integer spo2;

  /**
   * 电量
   */
  private Integer power;

  /**
   * 蓝牙连接情况   (0,未连接 1,已断开 2,已连接)
   */
  private Integer bluetooth;

  /**
   * 温度
   */
  private Float temp;

  @JSONField(name = "Hr")
  public ValueData setHr(Integer hr) {
    this.hr = hr;
    return this;
  }

  @JSONField(name = "Resp")
  public ValueData setResp(Integer resp) {
    this.resp = resp;
    return this;
  }

  @JSONField(name = "Spo2")
  public ValueData setSpo2(Integer spo2) {
    this.spo2 = spo2;
    return this;
  }

  @JSONField(name = "Power")
  public ValueData setPower(Integer power) {
    this.power = power;
    return this;
  }

  @JSONField(name = "BlueTooth")
  public ValueData setBluetooth(Integer bluetooth) {
    this.bluetooth = bluetooth;
    return this;
  }

  @JSONField(name = "Temp")
  public ValueData setTemp(Float temp) {
    this.temp = temp;
    return this;
  }

  @JSONField(name = "SerialNo")
  public ValueData setSerialNo(Integer serialNo) {
    this.serialNo = serialNo;
    return this;
  }
}
